class DropCreateArticles < ActiveRecord::Migration
  def self.up
    drop_table :articles
    create_table :articles do |t|

      t.column :title, :string, :null => false
      t.column :blurb, :string, :null => false
#       Text stored in textilize (redcloth) format
      t.column :body, :text, :null => false
#       Author is an user!.. change this
      t.column :author, :string, :null => false
#       Time stamps
      t.column :created_at, :datetime, :null => false
      t.column :updated_at, :datetime, :null => false

    end
  end

  def self.down
    drop_table :article_sources
  end
end